<?php if(!defined('MS_XTIGER')) exit('Access Denied');
/**
 * Created by openXtiger.org.
 * User: lunzi
 * Date: 2009-6-18
 * Time: 23:24:54
 */

/*public */function pagesupportmodel_page($sql,$page_size=10,$current_page){
    $pageSupport = xt_load('library', 'multipage');
     if(!empty($pageSupport))  {
        $page = new $pageSupport($page_size);
     }else{
        return null;
     }

	$page->__set("current_page",$current_page);
    $page->__set("sql",$sql);
    
    return $page;
  }

 ?>
